﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Vision.Core.Entities.Filing
{
    /// <summary>
    /// 
    /// </summary>    
    [Serializable()]
    [DataContract()]
    public class Document
    {
        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public int Id { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public int FolderId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public string FolderPath { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public Guid Key { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public string Name { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public string Description { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public byte[] Data { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public DateTime Created { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataMember]
        public DateTime Modified { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Document()
        {
            this.Id = 0;
            this.FolderId = 0;
            this.Key = Guid.NewGuid();
        }
    }
}
